import 'package:flustars/flustars.dart';
import 'package:flutterdemo/common/data/models/index.dart';
import 'package:flutterdemo/common/utils/UtilsIndex.dart';

import '../index.dart';

class UserRepository {
  static Future<void> login(LoginReq req) async {
    BaseResp<Map<String, dynamic>> baseResp = await DioUtil()
        .request<Map<String, dynamic>>(Method.get, APIs.baseInfo);
    if (baseResp.success) {
      print("======================");
      print(baseResp.data);
    } else {}
  }
}
